﻿using System;
public class ConfirmMessageResponse : AbstractGameMessage
{
    private ResponseBody responseBody;


    public ResponseBody GetResponseBody()
    {
        return this.responseBody;
    }

    public class ResponseBody
    {
        public String SecretKey { get; set; }
    }

    public override int GetMessageID()
    {
        return 1;
    }

    public override EnumMessageType GetMessageType()
    {
        return EnumMessageType.RESPONSE;
    }

    public override int GetServiceID()
    {
        return 1;
    }

    public override string Log()
    {
        return "连接认证响应消息";
    }

    public override void Read(byte[] body)
    {
        string str = StringUtil.bytesToString(body);
        this.responseBody = JsonUtil.JsonToObject<ResponseBody>(str);
    }

    public override byte[] Write()
    {
        throw new NotImplementedException();
    }
}
